package net.zrnecko.bowlingnumbers.session;

import net.zrnecko.bowlingnumbers.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("alleyHome")
public class AlleyHome extends EntityHome<Alley> {

	public void setAlleyId(Long id) {
		setId(id);
	}

	public Long getAlleyId() {
		return (Long) getId();
	}

	@Override
	protected Alley createInstance() {
		Alley alley = new Alley();
		return alley;
	}

	public void wire() {
	}

	public boolean isWired() {
		return true;
	}

	public Alley getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
